package com.example.tests;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

import com.example.fw.ApplicationManager;
//import com.example.fw.JdbcHelper;

public class Sample {
	
//	public static void main(String[] args) {
//		String b = "   + 4 (444) 56-55- 55    ";
//		b = b.trim();
//		System.out.println(b);
//		b = b.replaceAll("[ ()\\-]", "");
//		System.out.println(b);
//		System.out.println(b.matches("\\+\\d+"));
//	}

	public static void main(String[] args) throws FileNotFoundException, IOException {
		
		Properties properties = new Properties(); 
		properties.load(new FileReader(new File("application.properties")));
		ApplicationManager app = new ApplicationManager(properties);
		
//		JdbcHelper jdbc = new JdbcHelper(app, "jdbc:mysql://localhost/addressbook?user=root&password=");
//		System.out.println(jdbc.listGroups());
		System.out.println(app.getHibernateHelper().listGroups());
	}
	
}
